﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AllProductType.aspx.cs" Inherits="ViewbyProduct_Details_AllProductType" Title="查看所有客户与产品类型" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div>
        <br />
        &nbsp;<table style="width: 100%; height: 261px">
        <tr>
            <td style="width: 40%">
                <asp:Label ID="Label1" runat="server" Text="客户列表：" Width="162px"></asp:Label>
            </td>
            <td style="width: 60%">
                <asp:Label ID="Label2" runat="server" Text="产品类型列表：" Width="164px"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="vertical-align: top; width: 40%">
                <asp:GridView ID="GridView1" runat="server" CellPadding="3" 
                    DataKeyNames="CustomerID" GridLines="None" 
                    OnSelectedIndexChanged="GridView1_SelectedIndexChanged" 
                    AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
                    BorderStyle="Ridge" BorderWidth="2px" CellSpacing="1" AllowPaging="True" 
                    OnPageIndexChanging="GridView1_PageIndexChanging" Width="100%">
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <Columns>
                        <asp:BoundField DataField="CustomerID" HeaderText="客户编号" />
                        <asp:BoundField DataField="CustomerName" HeaderText="客户名称" />
                        <asp:CommandField HeaderText="选择" SelectText="查看" ShowSelectButton="True" ButtonType="Button" />
                    </Columns>
                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                </asp:GridView>
            </td>
            <td style="vertical-align: top; width: 60%">
                <asp:GridView ID="GridView2" runat="server" CellPadding="3" DataKeyNames="ProductTypeID"
            EmptyDataText="没有相关数据！" GridLines="None"
            Visible="False" AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
                    BorderStyle="Ridge" BorderWidth="2px" CellSpacing="1" AllowPaging="True" 
                    OnPageIndexChanging="GridView2_PageIndexChanging" Width="100%" 
                    PageSize="20">
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <Columns>
                        <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型编号" />
                        <asp:BoundField DataField="CustomerID" HeaderText="客户编号" />
                        <asp:BoundField DataField="ProductTypeName" HeaderText="产品类型名称" />
                        <asp:BoundField DataField="IsPassive" HeaderText="是否有源" />
                    </Columns>
                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                </asp:GridView>
            </td>
        </tr>
    </table>
    <br />
    <br />
    <br />
    </div>
    </ContentTemplate> 
    </asp:UpdatePanel> 
</asp:Content>

